﻿using EkStudio.com.bean.xml.reflection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EkStudio.com.bean.xml.RootInterface.FieldEvent
{
    public class BillDataFillSqlValueItem:BillObjectInterface
    {
        private string key = "";
        private string column = "";
        private string caption = "";
        private string languageTexts = "";
        private string showCaption = "";
        private int width = 80;
        private bool visible = true;
        private bool search = false;
        private string align = "left";
        private string order = "";
        private bool trigger = true;

        [Xml("key")]
        public string Key
        {
            get
            {
                return key;
            }

            set
            {
                key = value;
            }
        }
        [Xml("column")]
        public string Column
        {
            get
            {
                return column;
            }

            set
            {
                column = value;
            }
        }
        [Xml("caption")]
        public string Caption
        {
            get
            {
                return caption;
            }

            set
            {
                caption = value;
            }
        }
        [Xml("languageTexts")]
        public string LanguageTexts
        {
            get
            {
                return languageTexts;
            }

            set
            {
                languageTexts = value;
            }
        }
        [Xml("showCaption")]
        public string ShowCaption
        {
            get
            {
                return showCaption;
            }

            set
            {
                showCaption = value;
            }
        }
        [Xml("width")]
        public int Width
        {
            get
            {
                return width;
            }

            set
            {
                width = value;
            }
        }
        [Xml("visible")]
        public bool Visible
        {
            get
            {
                return visible;
            }

            set
            {
                visible = value;
            }
        }
        [Xml("search")]
        public bool Search
        {
            get
            {
                return search;
            }

            set
            {
                search = value;
            }
        }
        [Xml("align")]
        public string Align
        {
            get
            {
                return align;
            }

            set
            {
                align = value;
            }
        }
        [Xml("order")]
        public string Order
        {
            get
            {
                return order;
            }

            set
            {
                order = value;
            }
        }

        [Xml]
        public bool Trigger
        {
            get { return trigger; }
            set { trigger = value; }
        }

        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
                
            }
        }

        

        public object Clone()
        {
            BillDataFillSqlValueItem clone = new BillDataFillSqlValueItem();
            clone.Key = key;
            clone.Caption = caption;
            clone.Align = align;
            clone.Column = column;
            clone.LanguageTexts = languageTexts;
            clone.Order = order;
            clone.Search = search;
            clone.ShowCaption = showCaption;
            clone.Visible = visible;
            clone.Width = width ;
            clone.Trigger = trigger;
            return clone;
        }
    }
}
